package com.beijiteshop.shop.ui.home.repo

import com.beijiteshop.libcommon.network.ext.onBizError
import com.beijiteshop.libcommon.network.ext.onBizOK
import com.beijiteshop.libcommon.network.ext.serverData
import com.beijiteshop.libcommon.network.model.onFailure
import com.beijiteshop.libcommon.network.model.onSuccess
import com.beijiteshop.libcommon.network.repo.BaseRepo
import kotlinx.coroutines.delay
import retrofit2.Call

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/1 17:06
 * @Description
 */
class HomeRepo(private val service: HomeService) : BaseRepo() {

    private val TAG = this::class.java.simpleName

    fun getDiscountGoods(page: Int) = service.getDiscountGoods(page)

    fun getProductList(page: Int) = service.getProductList(page)
}